FROM ubuntu:focal

LABEL maintainer="rainb <rainbow-w@qq.com>"


# 软件安装 nmap-ncat dialog axel gnupg
RUN  sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list \
    && sed -i "s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list \
    && apt update && apt upgrade -y \
    && apt install -y \
    # curl \
    openjdk-8-jdk\
    # java-1.8.0-openjdk-devel \
    # git \
    # net-tools \
    python3 \
    # snappy-devel \
    # vim \
    # wget \
    # which \
    && rm -rf /var/lib/apt/lists/* 

# 环境设置
ARG TZ="Asia/Shanghai"
# ENV LANG="en_US.UTF-8"
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
ENV PATH=${PATH}:$JAVA_HOME/bin
